num=0
def ztq():
    global num
    num=2
    print(num)

ztq()
print(num)
